package com.sunnyweather.android.logic.model

import com.google.gson.annotations.SerializedName
import java.util.*
//天气预报数据处理模块，将数据封装成一个DailyResponse类
class DailyResponse(val code: String, val updateTime: String,val fxLink:String,val daily:List<Daily>,val refer:Refer) {

    class Daily(val fxDate:String,val sunrise:String,val sunset:String,val moonrise:String,
                val moonset:String,val moonPhase:String,val tempMax:Float,val tempMin:Float,
                val iconDay:Int,val textDay:String,val iconNight:Int,val textNight:String,
                val wind360Day:Int,val windDirDay:String,val windScaleDay:String,val windSpeedDay:Int,
                val wind360Night:Int,val windDirNight:String,val windScaleNight:String,
                val windSpeedNight:String,val humidity:Int,val precip:Float,val pressure:Int,
                val vis:Int,val cloud:Int, val uvIndex:Int)
    class Refer(val sources:List<String>,val license:List<String>)
}